package com.object.module.lq.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 通知
 * </p>
 *
 * @since 2024-04-09
 */
@TableName("t_notice")
@ApiModel(value = "TNotice对象", description = "通知")
@Data
public class TNotice implements Serializable
{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "tn_id", type = IdType.AUTO)
    private Integer tnId;

    @ApiModelProperty(value = "标题")
    private String tnTitle;

    @ApiModelProperty(value = "内容")
    private String tnContent;

    @ApiModelProperty(value = "类型：1.通知 2.消息 3.代办")
    private Integer tnType;

    @ApiModelProperty(value = "代办人")
    private Integer tnUrId;

    @ApiModelProperty(value = "状态：1.未读 2.已读")
    private Integer tnStats;

    @ApiModelProperty(value = "代办状态：1.代办  2.已处理")
    private Integer tnBehavior;

    @ApiModelProperty(value = "创建人")
    private Integer tnUr;

    @ApiModelProperty(value = "创建时间")
  //  @JsonFormat(pattern = "yyyy:MM:dd HH:mm:ss")
    private Date tnTime;

    @TableField(exist = false)
    private String imgUrl;
    @TableField(exist = false)
    private String nickName;
}
